package com.example.business_oa.service;

import com.example.comment_oa.dubbo.QiDongFuLiLiuChengDubbo;
import com.example.comment_oa.dubbo.SysEmployeeServiceDubbo;
import com.example.comment_oa.pojos.SysEmployee;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class SelectLeaderService {

    @DubboReference(version = "1.0.0")
    SysEmployeeServiceDubbo sysEmployeeServiceDubbo;

    public SysEmployee selectGongHao(String empCard){
        SysEmployee sysEmployee = sysEmployeeServiceDubbo.gonghao(empCard);
        return sysEmployee;
    }

    public SysEmployee selectEmailZiji(String empCard){
        SysEmployee sysEmployee = sysEmployeeServiceDubbo.empCard_empId(empCard);
        return sysEmployee;
    }


}
